package com.hongyou.user.dao.impl;

import java.util.ArrayList;
import java.util.List;

import com.hongyou.user.dao.IUserDao;
import com.hongyou.user.module.User;

public class UserDaoImpl implements IUserDao {
    
    @Override
    public User getUserById(String userId) {
        User user = new User();
        user.setAddress("bejing");
        user.setAge(Integer.valueOf(20));
        user.setEmail("rkikbs@163.com");
        user.setName("zhangsan");
        user.setPasswd("123456");
        user.setSex("main");
        user.setUserId(Integer.valueOf(2011));
        return user;
    }
    
    @Override
    public List<User> getUsers() {
        List<User> userList = new ArrayList<User>();
        User user = new User();
        userList.add(user);
        return userList;
    }
    
}
